﻿using dotHTML.HTML;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Text;
#pragma warning disable 0618
namespace TestdotHTML
{
    
    
    /// <summary>
    ///This is a test class for OlTest and is intended
    ///to contain all OlTest Unit Tests
    ///</summary>
    [TestClass()]
    public class OlTest {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext {
            get {
                return testContextInstance;
            }
            set {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Ol Constructor
        ///</summary>
        [TestMethod()]
        public void OlConstructorTest() {
            Ol target = new Ol();
            Assert.AreEqual("<ol></ol>", target.ToString());
        }

        /// <summary>
        ///A test for Compact
        ///</summary>
        [TestMethod()]
        public void CompactTest() {
            Ol target = new Ol();
            bool expected = false;
            bool actual;
            target.Compact = expected;
            actual = target.Compact;
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Reversed
        ///</summary>
        [TestMethod()]
        public void ReversedTest() {
            Ol target = new Ol();
            bool expected = false;
            bool actual;
            target.Reversed = expected;
            actual = target.Reversed;
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Start
        ///</summary>
        [TestMethod()]
        public void StartTest() {
            Ol target = new Ol();
            Nullable<int> expected = 1;
            Nullable<int> actual;
            target.Start = expected;
            actual = target.Start;
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Type
        ///</summary>
        [TestMethod()]
        public void TypeTest() {
            Ol target = new Ol();
            Nullable<ListTypeChoices> expected = ListTypeChoices.LowercaseLetters;
            Nullable<ListTypeChoices> actual;
            target.Type = expected;
            actual = target.Type;
            Assert.AreEqual(expected, actual);
        }

        [TestMethod()]
        public void ToStringTest() {
            Ol o = new Ol();
            o.Compact = true;
            o.Reversed = true;
            o.Start = 1;
            o.Type = ListTypeChoices.LowercaseLetters;
            Assert.AreEqual("<ol compact=\"compact\" " +
                "reversed=\"reversed\" " +
                "start=\"1\" " +
                "type=\"a\"></ol>", o.ToString());
        }
    }
}
